package com.wepa.smackgcp;

import org.jivesoftware.smack.packet.IQ;

class CloudPrintSubscriptionIQ extends IQ {

    private String bareId;
    
    public CloudPrintSubscriptionIQ(String bareId) {
	this.bareId = bareId;
    }
    @Override
    public String getTo() {
	return bareId;
    }

    @Override
    public Type getType() {
	return Type.SET;
    }

    @Override
    public String getChildElementXML() {
	String gcpSubscriptionText = "<subscribe xmlns=\"google:push\"><item channel=\"cloudprint.google.com\" from=\"cloudprint.google.com\"/></subscribe>\"";
	return gcpSubscriptionText;
    }

}
